package shared.pojo

import upickle.default._

/** Created by yz on 1/3/2023
  */
object App {

  val predict=Predict
  val user=User

  case class IdsData(ids: List[Int])

  object IdsData {
    implicit val rw = macroRW[IdsData]
  }

  case class IdData(id: Int)

  object IdData {
    implicit val rw = macroRW[IdData]
  }
  case class MissionIdData(missionId: Int)

  object MissionIdData {
    implicit val rw = macroRW[MissionIdData]
  }
  case class ValidData(valid: Boolean = true, message: String = "", missionId: Int)

  object ValidData {
    implicit val rw: ReadWriter[ValidData] = macroRW[ValidData]
  }

  case class ExportPdfData(missionIds: List[Int], svgStrs: List[String])

  object ExportPdfData {
    implicit val rw = macroRW[ExportPdfData]
  }

  case class DirData(dir: String)

  object DirData {
    implicit val rw = macroRW[DirData]
  }

}
